<?php

namespace app\admin\controller;

use Ramsey\Uuid\Uuid;
use think\captcha\facade\Captcha;

class Verify
{
    public function index(){
        $uuid = Uuid::uuid4();
        $data = Captcha::create($uuid);
        $message = [
            'captchaEnabled'=>true,
        ];
        $message = array_merge($data,$message);
        return show(config("status.success"),"验证码",$message);
    }

}
